import service from '@/utils/request'
export const getRoleList = (params) => {
  return service.get('/sys/role', { params })
}

export const addRole = (data) => {
  return service.post('/sys/role', data)
}

export const edit = (data) => {
  return service.put(`/sys/role/${data.id}`, data)
}

export const deleteApi = (id) => {
  return service.delete(`/sys/role/${id}`)
}
